/*
 * Powered By [Seven]
 * Since 2016 - 2019
 */

package com.czmh.etc.onlinepubsys.maper;

import com.czmh.etc.onlinepubsys.dto.ApplyListDto;
import com.czmh.etc.onlinepubsys.dto.EtcOrderListDTO;
import com.czmh.etc.onlinepubsys.model.EtcDevice;
import com.czmh.etc.onlinepubsys.model.EtcObuDTO;
import org.apache.ibatis.annotations.Mapper;

import com.czmh.etc.common.core.mapper.BaseMapper;
import com.czmh.etc.onlinepubsys.model.EtcOrder;

import java.util.List;
import java.util.Map;

@Mapper
public interface EtcOrderMapper extends BaseMapper<EtcOrder, String> {

    /**
     * 获取未完成激活流程的所有订单
     *
     * @return
     */
    List<ApplyListDto> getApplyOrderList(String user_id);

    List<EtcOrderListDTO> queryOrderList(Map<String, Object> map);

    List<EtcObuDTO> queryList(Map<String, Object> map);

    int queryTotal(Map<String, Object> map);


    List<EtcDevice> queryObjects(Map<String, Object> map);

    int updateObject(EtcDevice etcDevice);

    int isExistObu(Map<String, Object> map);

}
